function drawBuil(z) {
	for (var i = 0; i < 9; i++) {
		buil.src = "images/building" + i + ".png";
		mctx.drawImage(buil, 30, 113 + i * 29 - z * 2 / (i + 2));
	}
}

function fighter() {
	if (t < 2.5) {
		t+=0.1;
		x = v * t;
		y = g * t * t / 2;

		radian3 += 0.7;
		mctx.save();
		mctx.translate(110 + x, 50 + y);
		mctx.rotate(radian3);
		mctx.drawImage(fight, -12.5, -12.5);
		mctx.restore();
	}else if(t>=2.5&&t<5){
		v = -40;
		t+=0.1;
		x =80*2.5+ v * (t-2.5);
		y = g * t * t / 2;

		radian3 += 0.6;
		mctx.save();
		mctx.translate(110 + x, 50 + y);
		mctx.rotate(radian3);
		mctx.drawImage(fight, -12.5, -12.5);
		mctx.restore();
	}else if(x>=5&&t<8){
		v = 30;
		t+=0.1;
		x =80*2.5-40*2.5+ v * (t-5);
		y = g * t * t / 2;

		radian3 += 0.4;
		mctx.save();
		mctx.translate(110 + x, 50 + y);
		mctx.rotate(radian3);
		mctx.drawImage(fight, -12.5, -12.5);
		mctx.restore();
	}else if(t>=8&&t<10){
		t+=0.1;
		i+=0.15;
		radian3 -=0.05*Math.abs(i);
		mctx.save();
		mctx.translate(110 + x, 50 + y);
		mctx.rotate(radian3);
		mctx.drawImage(fight, -12.5, -12.5);
		mctx.restore();
	}else {
		mctx.drawImage(fight, 290, 360);
	}
}